package homework;

public class ShoppingCartItem  {
	private String id;// 唯一表示一条选购商品数据
	private String name;// 商品名称
	private double price;// 商品价格
	private double quantity;// 商品数量

	
	public ShoppingCartItem(String id, String name, double price,
			double quantity) {
		super();
		this.id = id;
		this.name = name;
		this.price = price;
		this.quantity = quantity;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getQuantity() {
		return quantity;
	}

	public void setQuantity(double quantity) {
		this.quantity = quantity;
	}
}

